# -*- coding: utf-8 -*-
# @Time    : 2016/11/3
from mathsolver.functions.base import BaseFunction, BaseValue, new_latex


class HanShuJiXian(BaseFunction):
    def solver(self, *args):
        jixian = args[0]
        result = jixian.doit()
        self.steps.append(["", "{} = {}".format(new_latex(jixian), result)])
        self.output.append(BaseValue(result))
        self.label.add("求函数极限")
        return self


if __name__ == '__main__':
    pass
